<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Front_Controller extends MY_Controller {
	function __construct () {
		parent::__construct();
		
		$this->load->helper('ssl');
		
		// we are in the frontend
		define("_FRONTEND","TRUE");
		
		$this->load->driver('cache');
		
		$this->load->library('smarty');
		$this->load->library('user_agent');
		if($this->agent->is_mobile()){
			$this->smarty->initialize(true);
		}else {
			$this->smarty->initialize();
		}
			
		$modules = $this->module_model->get_module_folders();
		
		$this->module_definitions = new stdClass();
		
		foreach ($modules as $module) {
			MY_Loader::define_module($module . '/');
		}
		
		//$this->load->library('app_hooks');

		
	}
}